Add this file that wasn't in the tarball for the initial import
authordanms@us.ibm.com <danms@us.ibm.com>
Thu, 10 Nov 2005 10:47:34 +0000 (11:47 +0100)
committerdanms@us.ibm.com <danms@us.ibm.com>
Thu, 10 Nov 2005 10:47:34 +0000 (11:47 +0100)
tools/xm-test/mergereport [new file with mode: 0644]

diff --git a/tools/xm-test/mergereport b/tools/xm-test/mergereport
new file mode 100644 (file)
index 0000000..98b37de
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Dan Smith <danms@us.ibm.com> - 16-Sep-2005
+#
+# This script takes all the .report files in the current
+# directory and generates a summary table, showing the 
+# number of PASS, FAIL, XPASS, and XFAIL tests in each 
+# report
+
+
+echo "            Platform | PASS | FAIL | XPASS | XFAIL |"
+echo "---------------------+------+------+-------+-------+"
+
+for r in *.report; do
+    
+    mach=$(basename $r .report)
+    pass=$(cat $r | grep '  PASS' | cut -d : -f 2 | sed 's/  *//')
+    fail=$(cat $r | grep '  FAIL' | cut -d : -f 2 | sed 's/  *//')
+    xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/  *//')
+    xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/  *//')
+
+    printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \
+           "$fail" "$xpas" "$xfal"
+
+done